<template>
  <div></div>
</template>

<script>
  import { defineComponent, reactive, toRefs, onMounted } from 'vue';
  import { useMicroStore } from '@common/store/micro-store';
  import { showModal } from '@/helper/modal.jsx';
  import '@/views/board-init/css/index.less';
  export default defineComponent({
    name: 'BoardInit',
    setup() {
      const microStore = useMicroStore();
      const data = reactive({});
      //注册监听顶部栏右侧通知
      microStore.on('home-init-board', (data) => {
        showModal(data);
      });
      const handleFlow = () => {
        showModal({ type: 'WF' });
      };
      const handleNotify = () => {
        showModal({ type: 'MSG' });
      };
      onMounted(() => {});
      return {
        handleFlow,
        handleNotify,
        ...toRefs(data),
      };
    },
  });
</script>
<style scoped lang="less"></style>
